package com.sc.smartcommunity.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sc.smartcommunity.domain.Announcement;

/**
 * 公告服务接口
 */
public interface AnnouncementService extends IService<Announcement> {

    /**
     * 分页查询公告
     */
    IPage<Announcement> getPage(Page<Announcement> page, String title);

    Announcement getByIdWithViewCount(Long id);
}
